<h1>this is parent template </h1>
<p>code: {{$code}}</p>
<p>msg: {{$msg}}</p>
{{if !empty($res) }}
    {{foreach from=$res item=element}}
        <p>hi {{$element.username}}  {{$element.password}}</p>
    {{/foreach}}
{{/if}}
<p>id: {{test_fun id=$id}}</p>
{{include file="demo/children.html"}}